namespace :git do

  task :store_versions => :environment do
    `git tag`.to_s.split("\n").each do |version|
      file_name = "#{VERSION_ROOT}/#{version}"
      file = File.new(file_name,'w')
      file.puts(eval "`git show #{version}`")
      file.close
    end
  end

end